home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
program
/
n_b_v203.zip
/
GBOXVIEW.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
3KB
|
56 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME GBOXVIEW.DMO ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
$endif
'.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
$INCLUDE "DAS-NBV1.INC"
SCREEN 12
CLS
GraphicSETUP
COLOR 7, 0
? "┌─────────────────────────────────────────────────────────────────────────
? "│ SetViewWindow ( C1%, R1%, C2%, R2% )
? "│ PURPOSE: set a view area for all graphics routines in this package
? "│ PARAMS: C1% left-most column ( 0 -> 639 )
? "│ R1% top most row ( 0 -> 479 )
? "│ C2% right most column
? "│ R2% bottom most row
? "│
? "│ GetViewWindow ( C1%, R1%, C2%, R2% )
? "│ PURPOSE: return the current parameters
? "│ PARAMS: see above
? "│
? "│ ViewSCREEN ()
? "│ PURPOSE: reset the view window to the whole screen
? "└─────────────────────────────────────────────────────────────────────────
DELAY 1 '┌───────────────────────────
'│
GBoxDRAW 10, 300, 319, 400, 0, 3, 9 '│ draw a perimeter box
SetViewWindow 11, 301, 318, 399 '│ set wndo to inside the box
'│
GLineDRAW 0, 350, 639, 350, 0, 3, 15 '│ draw lines through the box
GLineDRAW 165, 150, 165, 479, 0, 3, 14 '│ and it can't be done!
'│
GetViewWindow C1%, R1%, C2%, R2% '│ get the wndo params
PRINT USING "### ### ### ###"; C1%,R1%,C2%,R2% '│ print them
ViewSCREEN '│ reset to the whole screen
'│
WHILE NOT INSTAT : WEND '│
CLS '│
SCREEN 0 '└──────────────────────────